package cn.hh.ymcc.feign;


import cn.hh.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;



@FeignClient(value = "service-media",fallbackFactory = MediaFallbackFactory.class)
public interface MediaFeignClient {


    @RequestMapping(value = "mediaFile/getMedia/{courseId}",method = RequestMethod.GET)
    JSONResult queryMediaByCourseId(@PathVariable("courseId")Long courseId);

    @RequestMapping(value = "mediaFile/{id}",method = RequestMethod.GET)
    JSONResult get(@PathVariable("id")Long id);

}
